const mongoose = require("./db");
/* 2.在本地定义一个Schema和远程的数据库的字段映射 */
var ShopcarSchema = new mongoose.Schema({
    name: String,
    singer:String,
    imgUrl:String,
    like:Boolean,
    playCount:String
}, {
    versionKey: false // You should be aware of the outcome after set to false
});
/* 3.创建数据模型,和数据库中的表映射,获取表   */
/* Top250Model  是我们获取的top250那张表 */
var ShopcarModel = mongoose.model("Shopcar",ShopcarSchema,"shopcar")
module.exports = ShopcarModel;